#ifndef LOG_H
#define LOG_H

#define DEBUG_LOG

#ifdef DEBUG_LOG
#define DBG_LOG 	0x1
#define DBG_ERROR   0x2

static unsigned int log_mask = DBG_LOG|DBG_ERROR;
//extern int printk(const char *fmt, ...);

#define log(mask, fmt, arg...)  \
			do {                \
				if(log_mask & mask)      \
					printk(fmt, ##arg);	 \
			}while(0)

#else
#define log(mask, fmt, arg...)  
#endif



#endif
